﻿using System.Runtime.Serialization;
using Needle.Bus.Engine.Utils;

namespace Needle.Bus.Messages
{

    [DataContract]
    public class MessageBase : IMessage, IMessageId
    {

        public MessageBase()
        {
            Id = MessageId.Create();
        }

        [DataMember]
        public string Id { get; set; }

    }
}
